from wxpita import *

f = Frame(size='400, 500') [
    Panel [
        Button(name='btn1', label='Button One', pos=(10, 10)),
        Button(name='btn2', label='Button Two', pos=(10, 45)),
        Button(name='btn3', label='Button Three', pos=(10, 80)),
        TextCtrl(name='tc', pos=(10, 115), size=(370, 335),
                 style='te_multiline'),
    ],
]

def onclick(evt):
    f.tc.AppendText('You clicked on %s\n' % evt.EventObject.GetLabel())

f.btn1.button_clicked.register(onclick)
f.btn2.button_clicked.register(onclick)
f.btn3.button_clicked.register(onclick)

f.Show("Replace Wrapper with Wiget Example")
